import request from '@/utils/request'

// 查询准客户资料列表
export function listProspectcustomer(query) {
  return request({
    url: '/supply/prospectcustomer/list',
    method: 'get',
    params: query
  })
}

// 查询准客户资料详细
export function getProspectcustomer(id) {
  return request({
    url: '/supply/prospectcustomer/' + id,
    method: 'get'
  })
}

// 新增准客户资料
export function addProspectcustomer(data) {
  return request({
    url: '/supply/prospectcustomer',
    method: 'post',
    data: data
  })
}

// 修改准客户资料
export function updateProspectcustomer(data) {
  return request({
    url: '/supply/prospectcustomer',
    method: 'put',
    data: data
  })
}

// 删除准客户资料
export function delProspectcustomer(id) {
  return request({
    url: '/supply/prospectcustomer/' + id,
    method: 'delete'
  })
}
